//所有的环境变量的配置

//小程序上线前需要修改的变量
//************************************************
let status = 1; //0、测试环境  1、生产环境
//埋点---app版本号 ********上线之前更改
const ubtAppVersionKey = '1.0.0'
//埋点---app发布版本 ********上线之前更改
const ubtReleaseVersionKey = '1.0.0'
//************************************************

//数据请求的url
const baseUrl = ((status == 0) ? 'https://t-youxuan.bantiaoyu.cn' : 'https://hxn-youxuan.bantiaoyu.cn');
//图片服务器，用来存放占位图等
const imgUrl = ((status == 0) ? 'https://hxn-product-image.oss-cn-beijing.aliyuncs.com/cimage/' : 'https://hxn-product-image.oss-cn-beijing.aliyuncs.com/cimage/');
//webSocket
const wsUrl = ((status == 0) ? 'wss://t-youxuan.bantiaoyu.cn/wss' : 'wss://hxn-youxuan.bantiaoyu.cn/wss');
//用户信息
const userInfoKey = ((status == 0) ? 'miniUserInfoTestKey' : 'miniUserInfoKey');
//搜索信息
const searchInfoKey = ((status == 0) ? 'miniSearchInfoTestKey' : 'miniSearchInfoKey');
//购物车信息
const cartInfoKey = ((status == 0) ? 'miniCartInfoTestKey' : 'miniCartInfoKey');
//小程序系统信息
const systemInfoKey = ((status == 0) ? 'miniSystemInfoTestKey' : 'miniSystemInfoKey');
//小程序分享到角色参数传递
const pageOptionsInfoKey = ((status == 0) ? 'miniPageOptionsInfoTestKey' : 'miniPageOptionsInfoKey');
//天启业务埋点相关
const ubtCodeEnvKey = ((status == 0) ? 'fat' : 'pro');

module.exports = {
  status: status,
  baseUrl: baseUrl,
  imgUrl: imgUrl,
  wsUrl: wsUrl,
  userInfoKey: userInfoKey,
  searchInfoKey: searchInfoKey,
  cartInfoKey: cartInfoKey,
  systemInfoKey: systemInfoKey,
  pageOptionsInfoKey: pageOptionsInfoKey,
  ubtCodeEnvKey: ubtCodeEnvKey,
  ubtAppVersionKey: ubtAppVersionKey,
  ubtReleaseVersionKey: ubtReleaseVersionKey
}